inherited fmReceiveInvoiceInfo: TfmReceiveInvoiceInfo
  Caption = #38144#21806#21457#31080
  PixelsPerInch = 96
  TextHeight = 13
  inherited lcMain: TdxLayoutControl
    TabOrder = 3
    inherited lblCreateDate: TRzDBLabel
      Left = 765
      Top = 389
      DataField = 'dri_createdate'
      DataSource = dsBase
      ExplicitLeft = 765
      ExplicitTop = 389
    end
    inherited lblCreateStaff: TRzDBLabel
      Left = 765
      Top = 369
      DataField = 'dri_createstaff'
      DataSource = dsBase
      ExplicitLeft = 765
      ExplicitTop = 369
    end
    inherited lblModifyDate: TRzDBLabel
      Left = 629
      Top = 389
      DataField = 'dri_modifydate'
      ExplicitLeft = 629
      ExplicitTop = 389
    end
    inherited lblModifyStaff: TRzDBLabel
      Left = 629
      Top = 369
      DataField = 'dri_modifystaff'
      ExplicitLeft = 629
      ExplicitTop = 369
    end
    object RzDBLabel1: TRzDBLabel [4]
      Left = 493
      Top = 369
      Width = 80
      Height = 17
      Color = clWindow
      ParentColor = False
      BorderOuter = fsFlat
      BorderSides = [sdBottom]
      BorderHighlight = clWhite
      BorderShadow = 9280933
      FlatColor = 5607865
      FlatColorAdjustment = 0
      DataField = 'dri_state'
      DataSource = dsBase
    end
    inherited pcDetails: TcxPageControl
      Top = 134
      TabOrder = 9
      ExplicitTop = 134
      inherited cxTabSheet1: TcxTabSheet
        inherited grdDetails: TcxGrid
          RootLevelOptions.DetailTabsPosition = dtpTop
          inherited tvDetails: TcxGridDBBandedTableView
            DataController.Summary.FooterSummaryItems = <
              item
                Kind = skCount
                Column = tvDetailsColumn1
              end
              item
                Kind = skSum
                Column = tvDetailsAmt
              end
              item
                Kind = skSum
                Column = tvDetailsBalance
              end
              item
                Kind = skSum
                Column = tvDetailsBalance2
              end>
            Bands = <
              item
                FixedKind = fkLeft
                Visible = False
              end
              item
              end>
            inherited tvDetailsColumnLast: TcxGridDBBandedColumn
              Visible = True
              Position.BandIndex = 1
              Position.ColIndex = 7
              Position.RowIndex = 0
            end
            inherited tvDetailsOrder: TcxGridDBBandedColumn
              Position.BandIndex = 1
            end
            object tvDetailsColumn1: TcxGridDBBandedColumn
              Caption = #24212#25910#36134#27454#21333#21495
              DataBinding.FieldName = 'dria_accountno'
              PropertiesClassName = 'TcxButtonEditProperties'
              Properties.Buttons = <
                item
                  Default = True
                  Kind = bkEllipsis
                end>
              Properties.OnButtonClick = tvDetailsColumn1PropertiesButtonClick
              Width = 150
              Position.BandIndex = 1
              Position.ColIndex = 1
              Position.RowIndex = 0
            end
            object tvDetailsBalance2: TcxGridDBBandedColumn
              Caption = #21487#24320#31080#37329#39069
              DataBinding.FieldName = 'dria_balance2'
              PropertiesClassName = 'TcxCurrencyEditProperties'
              Options.Editing = False
              Width = 100
              Position.BandIndex = 1
              Position.ColIndex = 4
              Position.RowIndex = 0
            end
            object tvDetailsAmt: TcxGridDBBandedColumn
              Caption = #24320#31080#37329#39069
              DataBinding.FieldName = 'dria_amt'
              PropertiesClassName = 'TcxCurrencyEditProperties'
              Width = 100
              Position.BandIndex = 1
              Position.ColIndex = 5
              Position.RowIndex = 0
            end
            object tvDetailsColumn5: TcxGridDBBandedColumn
              Caption = #22791#27880
              DataBinding.FieldName = 'dria_remark'
              Width = 180
              Position.BandIndex = 1
              Position.ColIndex = 6
              Position.RowIndex = 0
            end
            object tvDetailsAccountAmt: TcxGridDBBandedColumn
              Caption = #36134#27454#37329#39069
              DataBinding.FieldName = 'dria_accountamt'
              PropertiesClassName = 'TcxCurrencyEditProperties'
              Options.Editing = False
              Width = 100
              Position.BandIndex = 1
              Position.ColIndex = 2
              Position.RowIndex = 0
            end
            object tvDetailsBalance: TcxGridDBBandedColumn
              Caption = #24050#24320#31080#37329#39069
              DataBinding.FieldName = 'dria_balance'
              PropertiesClassName = 'TcxCurrencyEditProperties'
              Options.Editing = False
              Width = 100
              Position.BandIndex = 1
              Position.ColIndex = 3
              Position.RowIndex = 0
            end
          end
          object tvDetails2: TcxGridDBTableView [1]
            Navigator.Buttons.CustomButtons = <>
            Navigator.Buttons.PriorPage.Visible = False
            Navigator.Buttons.NextPage.Visible = False
            Navigator.Buttons.Refresh.Visible = False
            Navigator.Buttons.SaveBookmark.Visible = False
            Navigator.Buttons.GotoBookmark.Visible = False
            Navigator.Buttons.Filter.Visible = False
            Navigator.Visible = True
            DataController.DataSource = dsDetails2
            DataController.Summary.DefaultGroupSummaryItems = <>
            DataController.Summary.FooterSummaryItems = <
              item
                Kind = skCount
                Column = tvDetails2Column1
              end
              item
                Kind = skSum
                Column = tvDetails2Amt
              end>
            DataController.Summary.SummaryGroups = <>
            OptionsView.NavigatorOffset = 0
            OptionsView.Footer = True
            OptionsView.GroupByBox = False
            OptionsView.Indicator = True
            OptionsView.IndicatorWidth = 30
            object tvDetails2Column1: TcxGridDBColumn
              Caption = #24320#31080#39033#30446
              DataBinding.FieldName = 'drii_object'
              Width = 120
            end
            object tvDetails2Price: TcxGridDBColumn
              Caption = #21333#20215
              DataBinding.FieldName = 'drii_price'
              PropertiesClassName = 'TcxCurrencyEditProperties'
              Width = 100
            end
            object tvDetails2Column3: TcxGridDBColumn
              Caption = #25968#37327
              DataBinding.FieldName = 'drii_qty'
              Width = 100
            end
            object tvDetails2Amt: TcxGridDBColumn
              Caption = #37329#39069
              DataBinding.FieldName = 'drii_amt'
              PropertiesClassName = 'TcxCurrencyEditProperties'
              Width = 100
            end
            object tvDetails2Column5: TcxGridDBColumn
              Caption = #22791#27880
              DataBinding.FieldName = 'drii_remark'
              Width = 160
            end
            object tvDetails2Last: TcxGridDBColumn
            end
          end
          inherited lvDetails: TcxGridLevel
            Caption = #24320#31080#24212#25910#36134#27454
          end
          object lvDetails2: TcxGridLevel
            Caption = #23454#38469#24320#31080#26126#32454
            GridView = tvDetails2
          end
        end
      end
    end
    object RzDBEdit1: TRzDBEdit [6]
      Left = 59
      Top = 28
      Width = 121
      Height = 21
      DataSource = dsBase
      DataField = 'dri_no'
      ReadOnly = True
      Color = clInfoBk
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      TabOrder = 0
    end
    object RzDBEdit3: TRzDBEdit [7]
      Left = 280
      Top = 52
      Width = 121
      Height = 21
      DataSource = dsBase
      DataField = 'dri_matchname'
      ReadOnly = True
      Color = clInfoBk
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      TabOrder = 4
    end
    object cbxCompany: TRzDBComboBox [8]
      Left = 280
      Top = 28
      Width = 145
      Height = 21
      DataField = 'dri_osimpname'
      DataSource = dsBase
      Ctl3D = False
      FlatButtonColor = 9229030
      FlatButtons = True
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      ItemHeight = 13
      ParentCtl3D = False
      TabOrder = 3
    end
    object RzDBMemo1: TRzDBMemo [9]
      Left = 59
      Top = 76
      Width = 121
      Height = 21
      DataField = 'dri_remark'
      DataSource = dsBase
      TabOrder = 2
      OnEnter = MemoEnter
      OnExit = MemoExit
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
    end
    object RzDBNumericEdit1: TRzDBNumericEdit [10]
      Left = 697
      Top = 52
      Width = 65
      Height = 21
      DataSource = dsBase
      DataField = 'dri_amt'
      ReadOnly = True
      Alignment = taLeftJustify
      Color = clInfoBk
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      TabOrder = 8
      IntegersOnly = False
      DisplayFormat = ',0.00;(,0.00)'
    end
    object RzDBComboBox1: TRzDBComboBox [11]
      Left = 59
      Top = 52
      Width = 145
      Height = 21
      DataField = 'dri_matchtype'
      DataSource = dsBase
      ReadOnly = True
      Color = clInfoBk
      Ctl3D = False
      FlatButtonColor = 9229030
      FlatButtons = True
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      ItemHeight = 13
      ParentCtl3D = False
      TabOrder = 1
      Items.Strings = (
        #24037#21378
        #23458#25143
        #20854#20182#24448#26469
        #20854#20182)
      Values.Strings = (
        #24037#21378
        #23458#25143
        #20854#20182#24448#26469
        #20854#20182)
    end
    object cbxStaff: TRzDBComboBox [12]
      Left = 697
      Top = 28
      Width = 145
      Height = 21
      DataField = 'dri_staff'
      DataSource = dsBase
      Ctl3D = False
      FlatButtonColor = 9229030
      FlatButtons = True
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      ItemHeight = 13
      ParentCtl3D = False
      TabOrder = 7
      OnDropDown = cbxStaffDropDown
    end
    object RzDBDateTimeEdit1: TRzDBDateTimeEdit [13]
      Left = 501
      Top = 28
      Width = 120
      Height = 21
      DataSource = dsBase
      DataField = 'dri_date'
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      TabOrder = 5
      EditType = etDate
      FlatButtonColor = 9229030
      FlatButtons = True
    end
    object cbxCurrency: TRzDBComboBox [14]
      Left = 501
      Top = 52
      Width = 120
      Height = 21
      DataField = 'dri_mcode'
      DataSource = dsBase
      Ctl3D = False
      FlatButtonColor = 9229030
      FlatButtons = True
      FocusColor = 13824245
      FrameColor = 5607865
      FrameHotStyle = fsGroove
      FrameSides = [sdBottom]
      FrameVisible = True
      FramingPreference = fpCustomFraming
      ItemHeight = 13
      ParentCtl3D = False
      TabOrder = 6
      OnDropDown = cbxCurrencyDropDown
    end
    inherited lcgRoot: TdxLayoutGroup
      Index = -1
    end
    inherited lcgBaseInfoNormal: TdxLayoutGroup
      Index = 0
    end
    inherited lcgBaseInfoLeft: TdxLayoutGroup
      ShowBorder = False
      Index = 0
    end
    inherited lcgBaseInfoMiddle: TdxLayoutGroup
      ShowBorder = False
      Index = 1
    end
    inherited lcgBaseInfoRight: TdxLayoutGroup
      ShowBorder = False
      Index = 2
    end
    inherited lcgBaseInfoLast: TdxLayoutGroup
      CaptionOptions.Visible = True
      Index = 3
    end
    inherited lcgDetails: TdxLayoutGroup
      Index = 1
    end
    inherited lcpcDetails: TdxLayoutItem
      Index = 0
    end
    inherited lcgArchive: TdxLayoutGroup
      Index = 2
    end
    inherited lcArchive2: TdxLayoutGroup
      Index = 1
    end
    inherited lcitemModifyStaff: TdxLayoutItem
      Index = 0
    end
    inherited lcitemModifyDate: TdxLayoutItem
      Index = 1
    end
    inherited lcgArchive1: TdxLayoutGroup
      Index = 2
    end
    inherited lcitemCreateStaff: TdxLayoutItem
      Index = 0
    end
    inherited lcitemCreateDate: TdxLayoutItem
      Index = 1
    end
    object lcMainItem1: TdxLayoutItem
      CaptionOptions.Text = #21457#31080#21333#21495
      LayoutLookAndFeel = dmImages.lfMust
      Parent = lcgBaseInfoLeft
      Control = RzDBEdit1
      ControlOptions.ShowBorder = False
      Index = 0
    end
    object lcMainItem9: TdxLayoutItem
      CaptionOptions.Text = #21457#31080#23545#35937
      Parent = lcgBaseInfoLeft
      Control = RzDBComboBox1
      ControlOptions.ShowBorder = False
      Index = 1
    end
    object lcMainItem6: TdxLayoutItem
      CaptionOptions.Text = #22791#27880
      Parent = lcgBaseInfoLeft
      Control = RzDBMemo1
      Index = 2
    end
    object lcMainItem5: TdxLayoutItem
      CaptionOptions.Text = #20844#21496
      LayoutLookAndFeel = dmImages.lfMust
      Parent = lcgBaseInfoMiddle
      Control = cbxCompany
      ControlOptions.ShowBorder = False
      Index = 0
    end
    object lcMainItem3: TdxLayoutItem
      CaptionOptions.Text = #21457#31080#21333#20301
      LayoutLookAndFeel = dmImages.lfBaseInfo
      Parent = lcgBaseInfoMiddle
      Control = RzDBEdit3
      ControlOptions.ShowBorder = False
      OnCaptionClick = lcMainItem3CaptionClick
      Index = 1
    end
    object lcMainItem11: TdxLayoutItem
      CaptionOptions.Text = #21457#31080#26085#26399
      Parent = lcgBaseInfoRight
      Control = RzDBDateTimeEdit1
      Index = 0
    end
    object lcMainItem2: TdxLayoutItem
      CaptionOptions.Text = #24065#21035
      Parent = lcgBaseInfoRight
      Control = cbxCurrency
      ControlOptions.ShowBorder = False
      Index = 1
    end
    object lcMainItem10: TdxLayoutItem
      CaptionOptions.Text = #24320#31080#20154
      Parent = lcgBaseInfoLast
      Control = cbxStaff
      ControlOptions.ShowBorder = False
      Index = 0
    end
    object lcMainItem8: TdxLayoutItem
      CaptionOptions.Text = #24320#31080#37329#39069
      Parent = lcgBaseInfoLast
      Control = RzDBNumericEdit1
      ControlOptions.ShowBorder = False
      Index = 1
    end
    object lcMainItem4: TdxLayoutItem
      CaptionOptions.Text = #21333#25454#29366#24577
      Parent = lcgArchive
      Control = RzDBLabel1
      ControlOptions.AutoColor = True
      ControlOptions.ShowBorder = False
      Index = 0
    end
  end
  inherited pnlRight: TPanel
    inherited frameAttachs: TfrmAttachs
      inherited bmAttachs: TdxBarManager
        DockControlHeights = (
          0
          0
          26
          0)
      end
    end
  end
  inherited BarManager: TdxBarManager
    DockControlHeights = (
      0
      0
      26
      0)
    inherited BarMain: TdxBar
      ItemLinks = <
        item
          Visible = True
          ItemName = 'bbtnNew'
        end
        item
          Visible = True
          ItemName = 'bbtnEdit'
        end
        item
          BeginGroup = True
          Visible = True
          ItemName = 'bbtnCopy'
        end
        item
          Visible = True
          ItemName = 'bbtnRefresh'
        end
        item
          Visible = True
          ItemName = 'bbtnDelete'
        end
        item
          BeginGroup = True
          UserDefine = [udPaintStyle]
          UserPaintStyle = psCaptionGlyph
          Visible = True
          ItemName = 'bbtnSave'
        end
        item
          Visible = True
          ItemName = 'bbtnCancel'
        end
        item
          BeginGroup = True
          UserDefine = [udPaintStyle]
          Visible = True
          ItemName = 'bbtnFirst'
        end
        item
          Visible = True
          ItemName = 'bbtnPrev'
        end
        item
          Visible = True
          ItemName = 'bbtnNext'
        end
        item
          UserDefine = [udPaintStyle]
          Visible = True
          ItemName = 'bbtnLast'
        end
        item
          BeginGroup = True
          UserDefine = [udPaintStyle]
          UserPaintStyle = psCaptionGlyph
          Visible = True
          ItemName = 'bbtnPrint'
        end
        item
          BeginGroup = True
          UserDefine = [udPaintStyle]
          UserPaintStyle = psCaptionGlyph
          Visible = True
          ItemName = 'bbtnAttach'
        end
        item
          BeginGroup = True
          Visible = True
          ItemName = 'itemOperation'
        end>
    end
    object itemOperation: TdxBarSubItem
      Caption = #21333#25454#25805#20316
      Category = 0
      Visible = ivAlways
      ImageIndex = 194
      ItemLinks = <
        item
          Visible = True
          ItemName = 'bbtnDonothing'
        end
        item
          Visible = True
          ItemName = 'bbtnDone'
        end>
    end
    object bbtnDone: TdxBarButton
      Caption = #24050#24320#31080
      Category = 0
      Hint = #24050#24320#31080
      Visible = ivAlways
      OnClick = bbtnDoneClick
    end
    object bbtnDonothing: TdxBarButton
      Caption = #26410#22788#29702
      Category = 0
      Hint = #26410#22788#29702
      Visible = ivAlways
      OnClick = bbtnDonothingClick
    end
  end
  inherited tblBase: TDAMemDataTable
    Fields = <
      item
        Name = 'dri_id'
        DataType = datGuid
        Required = True
        InPrimaryKey = True
      end
      item
        Name = 'dri_no'
        DataType = datString
        Size = 30
      end
      item
        Name = 'dri_date'
        DataType = datDateTime
      end
      item
        Name = 'dri_matchtype'
        DataType = datString
        Size = 30
      end
      item
        Name = 'dri_matchid'
        DataType = datGuid
      end
      item
        Name = 'dri_matchno'
        DataType = datString
        Size = 20
      end
      item
        Name = 'dri_matchname'
        DataType = datString
        Size = 30
      end
      item
        Name = 'dri_staff'
        DataType = datString
        Size = 30
      end
      item
        Name = 'dri_amt'
        DataType = datFloat
      end
      item
        Name = 'dri_mcode'
        DataType = datString
        Size = 10
      end
      item
        Name = 'dri_remark'
        DataType = datString
        Size = 240
      end
      item
        Name = 'dri_createstaff'
        DataType = datString
        Size = 30
      end
      item
        Name = 'dri_createdate'
        DataType = datDateTime
      end
      item
        Name = 'dri_modifystaff'
        DataType = datString
        Size = 30
      end
      item
        Name = 'dri_modifydate'
        DataType = datDateTime
      end
      item
        Name = 'dri_billno'
        DataType = datString
        Size = 30
      end
      item
        Name = 'dri_billid'
        DataType = datGuid
      end
      item
        Name = 'dri_oid'
        DataType = datGuid
      end
      item
        Name = 'dri_osimpname'
        DataType = datString
        Size = 30
      end
      item
        Name = 'dri_oiid'
        DataType = datInteger
      end
      item
        Name = 'dri_state'
        DataType = datString
        Size = 30
      end>
    LogicalName = 'd_receiveinvoice'
  end
  inherited dsBase: TDADataSource
    DataSet = tblBase.Dataset
  end
  inherited tblDetails: TDAMemDataTable
    Fields = <
      item
        Name = 'dria_pid'
        DataType = datGuid
        Required = True
        InPrimaryKey = True
      end
      item
        Name = 'dria_serial'
        DataType = datInteger
        Required = True
        InPrimaryKey = True
      end
      item
        Name = 'dria_accountid'
        DataType = datGuid
      end
      item
        Name = 'dria_accountno'
        DataType = datString
        Size = 30
      end
      item
        Name = 'dria_accountamt'
        DataType = datFloat
      end
      item
        Name = 'dria_amt'
        DataType = datFloat
      end
      item
        Name = 'dria_balance'
        DataType = datFloat
      end
      item
        Name = 'dria_balance2'
        DataType = datFloat
      end
      item
        Name = 'dria_remark'
        DataType = datString
        Size = 120
      end>
    MasterMappingMode = mmWhere
    BeforePost = tblDetailsBeforePost
    MasterSource = dsBase
    MasterFields = 'dri_id'
    DetailFields = 'dria_pid'
    LogicalName = 'd_receiveinvoiceaccount'
  end
  inherited dsDetails: TDADataSource
    DataSet = tblDetails.Dataset
  end
  inherited cxEditStyleController1: TcxEditStyleController
    PixelsPerInch = 96
  end
  inherited cxStyleRepository2: TcxStyleRepository
    PixelsPerInch = 96
  end
  inherited cxStyleRepository3: TcxStyleRepository
    PixelsPerInch = 96
  end
  object dsDetails2: TDADataSource
    DataSet = tblDetails2.Dataset
    DataTable = tblDetails2
    Left = 82
    Top = 206
  end
  object tblDetails2: TDAMemDataTable
    RemoteUpdatesOptions = []
    Fields = <
      item
        Name = 'drii_pid'
        DataType = datGuid
        Required = True
        InPrimaryKey = True
      end
      item
        Name = 'drii_serial'
        DataType = datInteger
        Required = True
        InPrimaryKey = True
      end
      item
        Name = 'drii_object'
        DataType = datString
        Size = 60
      end
      item
        Name = 'drii_price'
        DataType = datFloat
      end
      item
        Name = 'drii_qty'
        DataType = datFloat
      end
      item
        Name = 'drii_amt'
        DataType = datFloat
      end
      item
        Name = 'drii_remark'
        DataType = datString
        Size = 120
      end>
    Params = <>
    MasterMappingMode = mmWhere
    StreamingOptions = [soDisableEventsWhileStreaming]
    RemoteDataAdapter = ClientDataModule.RemoteDataAdapter
    BeforeInsert = tblDetails2BeforeInsert
    BeforeEdit = tblDetails2BeforeEdit
    BeforeDelete = tblDetails2BeforeDelete
    OnNewRecord = tblDetails2NewRecord
    MasterSource = dsBase
    MasterFields = 'dri_id'
    DetailFields = 'drii_pid'
    DetailOptions = [dtCascadeOpenClose, dtCascadeApplyUpdates, dtAutoFetch, dtCascadeDelete, dtCascadeUpdate, dtDisableLogOfCascadeDeletes, dtDisableLogOfCascadeUpdates, dtIncludeInAllInOneFetch]
    MasterOptions = [moCascadeOpenClose, moCascadeApplyUpdates, moCascadeDelete, moCascadeUpdate, moDisableLogOfCascadeDeletes, moDisableLogOfCascadeUpdates]
    LogicalName = 'd_receiveinvoiceitem'
    IndexDefs = <>
    Left = 52
    Top = 206
  end
end
